package com.dux.commons.configuration.transformers;

import java.io.File;
import java.lang.reflect.Field;

import com.dux.commons.configuration.PropertyTransformer;
import com.dux.commons.configuration.TransformationException;


/**
 * 字符串转成File类型
 * @author 杜祥
 * @create 2013-6-29
 */
public class FileTransformer implements PropertyTransformer<File>
{
	public static final FileTransformer	SHARED_INSTANCE	= new FileTransformer();


	@Override
	public File transform(String value, Field field) throws TransformationException
	{
		return new File(value);
	}
}
